#pragma once
#include <iostream>
#include <vector>
#include <math.h>
#include "state.h"

class Algorithm
{
public:
	Algorithm(State *states,int size);
	~Algorithm();
	void Calculate();
	int GetMinWiTi();
private:
	void Optimal (int &id,int& cMax);
	State *states;
	int *wiTi;
	int size;
};